package com.feng.zhihao.apigeteway.dao.interfaces;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.feng.zhihao.apigeteway.entity.InterfaceFieldInfo;
import com.feng.zhihao.apigeteway.entity.InterfaceInfo;

/**
 * JpaSpecificationExecutor 复杂查询
 * @author fengz
 *
 */
public interface InterfaceFieldInfoDao extends JpaRepository<InterfaceFieldInfo,String> {
	
	@Query("from InterfaceFieldInfo where interfaceFieldInfo is null and interfaceInfo = :interfaceId ")
	List<InterfaceFieldInfo> findByInterfaceInfo(@Param("interfaceId") InterfaceInfo interfaceInfo);
	
}
